
const state = {
  // keep-alive的数组
  include: [],
  
}
const getters = {
  getInclude: (state) => {
    return state.include
  },
}
const mutations = {
  addInclude: (state, data) => {
    state.include.push(data)
    state.include = [...new Set(state.include)]
  },
  deleteInclude: (state, data) => {
    if (data == 'all') {
      state.include = []
    } else {
      state.include = state.include.filter(
        (item, index) => state.include.indexOf(data) != index
      )
    }
  },
}
const actions = {}

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions,
}
